#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time: 2022/9/15 18:42
# @Author: 刘航
# @Email: xxx@gmail.com
# @File：modify_cule_page.py
"""
线索修改界面
"""
from pages.base_page import BasePage
from selenium.webdriver.common.by import By
class  ModifyCulePage(BasePage):
    mobile_locator = (By.ID,"mobile") #手机号
    save_locator = (By.CSS_SELECTOR,"input.btn:nth-child(1)")
    def modify_cule_mobile(self,mobile):
        """手机号输入"""
        element = self.driver.find_element(*self.mobile_locator)
        element.clear()
        element.send_keys(mobile)
    def save_cule_btn(self):
        """保存按钮"""
        self.driver.find_element(*self.save_locator).click()
